import request from '@/utils/request'

// 查询申报人项目映射列表
export function listApplicant(query) {
  return request({
    url: '/system/applicant/list',
    method: 'get',
    params: query
  })
}

// 查询申报人项目映射详细
export function getApplicant(projectId) {
  return request({
    url: '/system/applicant/' + projectId,
    method: 'get'
  })
}

// 新增申报人项目映射
export function addApplicant(data) {
  return request({
    url: '/system/applicant',
    method: 'post',
    data: data
  })
}

// 修改申报人项目映射
export function updateApplicant(data) {
  return request({
    url: '/system/applicant',
    method: 'put',
    data: data
  })
}

// 删除申报人项目映射
export function delApplicant(projectId) {
  return request({
    url: '/system/applicant/' + projectId,
    method: 'delete'
  })
}
